:root {
    --fill-base: rgb(184, 165, 149);
    --text-base: rgb(106, 85, 102);
    --text-hover: rgb(173, 149, 129);
    --text-active: rgb(255, 255, 255);

    --button-text-base: var(--text-active);
    --button-fill-base: var(--text-hover);

    --tab-text-base: rgb(86, 73, 81);
    --tab-text-active: rgb(156, 102, 102);
    --tab-fill-hover: rgb(229, 226, 223);
    --tab-fill-active: rgb(220, 212, 206);

    --tab-horiziontal-text-base: rgb(86, 73, 81);
    --tab-horiziontal-fill-base: rgb(226, 155, 208);
    --tab-horiziontal-text-active: rgb(226, 155, 208);

    --table-cell-height: 40px;

    --accordion-scroll-wrapper-height: 0;

    --cell-fill-hover: rgba(228, 228, 228, 0.5);
    --cell-fill-active: rgba(228, 228, 228, 0.7);

    --fill-popup-pane: rgb(30, 31, 35);
    --fill-popup-inner-icon: rgb(176, 158, 143);
    --fill-popup-mode-hover: rgb(43, 44, 47);
    --fill-popup-mode-border: rgb(113, 110, 110);
}

.v-row {
    display: flex;
    align-items: center;
}

.v-column {
    display: flex;
    flex-direction: column;
}

.fixed-left-bar {
    flex: none;
    width: 200px;
    /*
        border-box :元素实际部分为指定的宽高 (内容部分 = 指定的为实际宽高 - 边框 - 内边距)
        content-box:元素内容部分为指定的宽高 (实际部分 = 指定的为内容宽高 + 边框 + 内边距)
     */
    box-sizing: border-box;
    background: rgb(241, 241, 241);
}

.tab-pane {
    flex: auto;
    display: flex;
    overflow: hidden;
}

.tab-pane .tab {
    display: flex;
    padding: 10px 20px;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    color: var(--tab-text-base);
}

.tab-pane .tab > .icon {
    margin: 0 12px 0 0;
    fill: var(--tab-text-base);
}

.tab-pane .tab:hover {
    background: var(--tab-fill-hover);
}

.tab-pane .tab.active {
    color: var(--tab-text-active);
    background: var(--tab-fill-active);
}

.tab-pane .tab.active > .icon {
    fill: var(--tab-text-active);
}

.tab-pane > .tab-content {
    flex: auto;
    overflow: hidden;
    box-sizing: border-box;
}

.tab-pane.v-column .tab-content {
    padding: 1em 0 0 0;
}

.tab-pane.v-column .tab-container .tab {
    padding: 0;
    height: 2em;
    width: 4.5em;
    background: none;
    flex-direction: column;
    color: var(--tab-horiziontal-text-base);
}

.tab-pane.v-column .tab-container .tab:not(:last-child) {
    margin: 0 2.5em 0 0;
}

.tab-pane.v-column .tab-container .tab:after {
    content: '';
    height: 3px;
    width: 100%;
    display: block;
    transform: scaleX(0);
    margin: 0.25em 0 0 0;
    background: var(--tab-horiziontal-fill-base);
    transition: transform 0.3s ease-in-out;
}

.tab-pane.v-column .tab-container .tab:hover:after {
    transform: scaleX(1);
}

.tab-pane.v-column .tab-container .tab.active {
    color: var(--tab-horiziontal-text-active);
}

.tab-pane.v-column .tab-container .tab.active:after {
    transform: none;
    transition: none;
}

html, body, #app {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    user-select: none;
    background: rgb(236, 236, 236);
}

/*======================Button===================*/
.button {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0.375rem 0.75rem;
    box-sizing: border-box;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
    border-radius: 4px;

    /*border: 1px solid #c6e2ff;*/
    /*background: #ecf5ff;*/
    background: var(--button-fill-base);
    /*color: #409eff;*/
    color: var(--button-text-base);
}

.button:focus {
    outline: none;
    /*border: 1px solid #409eff;*/
    /*box-shadow: 0 0 0.25em 0 #409eff;*/
}

.button > svg {
    fill: var(--button-text-base);
    margin: 0 4px 0 0;
}

/*======================CheckBox===================*/
.check-box {
    width: 22px;
    height: 22px;
    padding: 1px;
    display: flex;
    align-items: center;
    border-radius: 2px;
    box-sizing: border-box;
    border: 1px solid rgb(181, 181, 181);
}

.check-box > .icon {
    margin: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 2px 0 0 2px;
    fill: rgb(87, 87, 87);
    background: linear-gradient(to bottom, rgb(238, 238, 238), rgb(218, 218, 218));
}

.check-box > .indeterminate-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    background: linear-gradient(to bottom, rgb(238, 238, 238), rgb(218, 218, 218));
}

.check-box .indeterminate {
    flex: auto;
    display: flex;
    height: 1px;
    margin: 0 3px;
    border: 1px solid rgb(87, 87, 87);
    box-sizing: border-box;
}

/*======================Slider===================*/
.slider {
    font-size: 16px;
    margin: 4px 10px;
    padding: 6px 0; /** height: 8px; */
    position: relative;
    cursor: pointer;

    display: flex; /** 使用flex布局,使其子元素在侧轴方向上居中对齐 */
    align-items: center; /** 否则需要使用{top:0; bottom:0; margin:auto 0;} */
}

.slider.vertical {
    padding: 0 6px;
    margin: 6px 8px;
    flex-direction: column;
}

.slider > .fill, .slider > .track, .slider > .buffering {
    width: 100%;
    height: 0.25em;
    position: absolute;
    pointer-events: none;
}

.slider.vertical > .fill, .slider.vertical > .track, .slider.vertical > .buffering {
    width: 0.25em;
    height: 100%;
    bottom: 0;
}

.slider .thumb {
    position: absolute;
    border-radius: 0.85em;
    height: 0.85em;
    width: 0.85em;
    background: #b8a595;
    transform: translateX(-50%); /* 水平左移 相对于自身宽度的一半,方便后续计算位置*/
}

.slider.vertical > .thumb {
    transform: translateY(-50%);
}

.slider > .track {
    background: #9aa09a;
}

.slider > .fill {
    background: #b8a595;
}

.slider > .buffering {
    background: #7f6b7c;
}

/*======================Table==================*/
.table {
    display: flex;
    overflow: hidden;
    flex-direction: column;
    color: var(--text-base);
}

.table:focus {
    outline: none;
}

.table .table-cell {
    padding: 8px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.table .column {
    display: flex;
    flex: 0 0 40px;
}

.table .column .table-cell:not(.gutter) {
    background: rgb(230, 230, 230);
}

.table .column .gutter {
    flex: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.table .scroll-wrapper .table-row-cell {
    display: flex;
    align-items: center;
    height: var(--table-cell-height);
}

.table .scroll-wrapper .table-row-cell:hover {
    background: var(--cell-fill-hover);
}

.table .scroll-wrapper .table-row-cell.selected {
    background: var(--cell-fill-active);
}

.table .scroll-wrapper .content-wrapper {
    height: 100%;
}

/*======================TextField==================*/
.text-field {
    height: 2em;
    color: black;

    padding: 0 0.75em;
    display: flex;
    align-items: center;
    border-radius: 2em;
    position: relative;
    background-color: rgb(223, 223, 223);
}

.text-field > .input {
    height: 100%;
    border: none;
    outline: none;
    color: black;
    font-size: 16px;
    background: none;
    box-sizing: border-box;
}

/*
    输入框placeholder样式(对于此样式不会出现在浏览器样式列表中)
    Chrome :  ::-webkit-input-placeholder
    Firefox:  -moz-placeholder 或 ::moz-placeholder
    IE10+  :  -ms-input-placeholder
*/
.text-field > .input::-webkit-input-placeholder {
    color: #c0c4cc;
}

/* 解决input元素type为number时显示增加和减小按钮(input::-webkit-outer-spin-button,*/
.text-field > .input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.text-field > .icon {
    width: .75em;
    height: .75em;
}

/*======================Accordion==================*/
.accordion {
    width: 200px;
    margin: 0 1px 0 4px;
    color: var(--text-base);
}

.accordion .list-view.expand {
    overflow: hidden;
}

.accordion .list-view .titled-pane {
    border: solid rgb(200, 200, 200);
    border-width: 1px 1px 0 1px;
    white-space: nowrap;
    padding: 4px;
}

.accordion .list-view.expand .titled-pane,
.accordion .list-view:not(.expand):last-child .titled-pane {
    border-width: 1px;
}

.accordion .list-view .icon {
    pointer-events: none;
    margin: 0 4px;
}

.accordion .list-view:not(.expand) .titled-pane .icon {
    transform: rotate(-90deg);
}

.accordion .list-view .scroll-wrapper {
    border: solid rgb(200, 200, 200);
    border-width: 0 1px;
    transition: height 1s;
    overflow: auto;
    height: 0;
}

.accordion .list-view.expand:last-child .scroll-wrapper {
    border-width: 0 1px 1px 1px;
}

.accordion .list-view.expand .scroll-wrapper {
    height: var(--accordion-scroll-wrapper-height);
}

.accordion .list-view .scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.accordion .list-view .item {
    white-space: nowrap;
    padding: 4px 10px;
}

.accordion .list-view .item:hover {
    background: var(--cell-fill-hover);
}

.accordion .list-view .item.selected {
    background: var(--cell-fill-active);
}

/*======================Spinner==================*/
.spinner {
    width: 100%;
    height: 100%;
    padding: 0;

    top: 0;
    left: 0;
    z-index: 2;
    position: absolute;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
    background-color: rgba(0, 0, 0, .5);
}

.arc-container {
    width: 6.125em; /* 1em=16px 98px */
    height: 6.125em;
    border-radius: 50%;
    box-sizing: border-box;
    border: 6px solid rgba(255, 255, 255, .1);
    animation: arc-container-circle 1.2s infinite ease-in-out
}

.arc-container .arc-left, .arc-container .arc-right {
    width: 3.0625em; /* 49px */
    height: 6.125em; /* 98px */
    top: -6px;
    position: absolute;
    overflow: hidden;
}

.arc-container .arc-left {
    left: -6px;
}

.arc-container .arc-right {
    right: -6px;
}

.arc-container .arc-inner {
    width: 6.125em;
    height: 6.125em;

    position: absolute;
    border-radius: 50%;
    box-sizing: border-box;
    border: 6px solid rgba(255, 255, 255, .5);
}

.arc-container .arc-left .arc-inner {
    left: 0;
    transition-delay: .5s;
    clip: rect(0, 6.125em, 6.125em, 3.0625em);
}

.arc-container .arc-right .arc-inner {
    right: 0;
    clip: rect(0, 3.0625em, 6.125em, 0);
    animation: arc-right-inner-circle 1.2s infinite linear;
}

.spinner-inner-icon {
    width: 5.5em;
    height: 5.5em;
    fill: white;
    position: absolute;
    animation: spinner-icon 1.2s infinite ease-in-out;
}

@keyframes spinner-icon {
    0%, 100% {
        opacity: .2;
    }
    47%, 53% {
        opacity: .6;
    }
}

@keyframes arc-container-circle {
    0% {
        transform: scaleX(-1) rotate(0) translateZ(0);
    }
    100% {
        transform: scaleX(-1) rotate(180deg) translateZ(0);
    }
}

@keyframes arc-right-inner-circle {
    0% {
        transform: rotate(0) translateZ(0);
    }
    45%, 55% {
        transform: rotate(100deg) translateZ(0);
    }
    100% {
        transform: rotate(360deg) translateZ(0);
    }
}

/*======================Message==================*/
.message {
    top: 20px;
    left: 50%;
    position: fixed; /*相对于浏览器窗口固定定位*/

    padding: 1em;
    min-width: 380px;

    display: flex;
    align-items: center;

    box-sizing: border-box;
    border: 1px solid #ebeef5;
    background-color: #edf2fc;
    transform: translateX(-50%);
    transition: opacity .3s, transform .4s, top .4s;
    -webkit-app-region: no-drag; /* electron独有的属性,防止message在标题栏上不能响应操作 */
}

.message.center {
    justify-content: center;
}

.message.success > .message-icon {
    fill: #67c23a;
}

.message.error > .message-icon {
    fill: #f56c6c;
}

.message.info > .message-icon {
    fill: #909399;
}

.message.warning > .message-icon {
    fill: #e6a23c;
}

.message .content {
    flex: auto;
    padding: 0;
    font-size: 0.875em; /** 1em = 16px => 0.875em = 14px */
    line-height: 1;
    display: flex;
}

.message.info > .content {
    color: #909399;
}

.message.success {
    background-color: #f0f9eb;
    border-color: #e1f3d8;
}

.message.success > .content {
    color: #67c23a;
}

.message.warning {
    background-color: #fdf6ec;
    border-color: #faecd8;
}

.message.warning > .content {
    color: #e6a23c;
}

.message.error {
    background-color: #fef0f0;
    border-color: #fde2e2;
}

.message.error > .content {
    color: #f56c6c;
}

.message-icon {
    flex: none;
    margin: 0 0.625em 0 0;
}

.message .close-icon {
    flex: none;
    fill: #c0c4cc;
    cursor: pointer;
    margin: 0 0 0 0.1em;
    font-size: 1.6em;
}

.message .close-icon:hover {
    fill: #909399;
}

.message-fade-enter, .message-fade-leave-active {
    opacity: 0;
    transform: translate(-50%, -100%);
}

/* 谷歌内核浏览器的滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

/* 滚动条滑块样式 */
::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* 滚动条在鼠标按下未释放时的样式 */
::-webkit-scrollbar-thumb:active {
    background: #666;
}

/* 滚动条轨道样式 */
::-webkit-scrollbar-track {
    background: 0 0;
}

/** 水平滚动条和垂直滚动条交叉部分 */
::-webkit-scrollbar-corner {
    display: none
}
